import { postAxios, getAxios } from '@/utils/http'

export const healthCodeApi = {
  healthList: (params) => {
    return postAxios('/epidemic/health/list',params);
  },

  healthAdd: (data) => {
    return postAxios('/epidemic/health/add',data);
  },

  healthUpdate: (data) => {
    return postAxios('/epidemic/health/update', data);
  },

  healthDelete: (id) => {
    return getAxios('/epidemic/health/delete',{id:id});
  },

  healthDisable: (id,isDisable) => {
    return getAxios('/epidemic/health/disable',{id:id,isDisable:isDisable});
  },
};